<?php $tn_zen_featured_category = get_option('tn_zen_featured_category'); $tn_zen_featured_sum = get_option('tn_zen_featured_sum'); ?>

<?php if(($tn_zen_featured_category == "Choose a category:") || ($tn_zen_featured_category == '')) { ?>

<?php } else { ?>

<p id="feature-articles">Update!</p>

<div id="Gallerybox">
<div id="myGallery">



<?php $my_query = new WP_Query('category_name='. $tn_zen_featured_category . '&' . 'showposts='. $tn_zen_featured_sum);
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>

<div class="imageElement">


<h3><?php the_short_title();  ?></h3>
<p><?php the_excerpt_feature(); ?></p>


<?php $values = get_post_custom_values("featured-images-xl");
if ( is_array($values)) : ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php echo "$values[0]"; ?>" class="full" alt="<?php the_title(); ?>" /></a>
<?php else : ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/no_img_xl.png" class="full" alt="<?php the_title(); ?>" /></a>
<?php endif; ?>

</div>

<?php endwhile;?>

</div>
</div>

<?php } ?>